package com.spj.service.impl;

import com.spj.dao.UserDao;
import com.spj.pojo.User;
import com.spj.service.dao.UserServiceDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author :spj
 * @description:
 */
@Service
public class UserServiceImpl implements UserServiceDao {
    @Autowired
    private UserDao userDao;
    @Override
    public User findUserById(int id) {
        return userDao.findUserById(id);
    }

    @Override
    public void registUser(User user) {
        userDao.registUser(user);
    }

    @Override
    public void changePasswod(User user) {
        userDao.changePasswod(user);
    }
}
